<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>首页</title>
    </head>
    <body>
        Home Page
        <div>
            <a th:href="@{/rest/user}">查询全部用户信息</a>
        </div>
        <div>
            <a th:href="@{/rest/user/1000}">查询ID为1000的用户信息</a>
        </div>
        <div>
            <form th:action="@{/rest/user}" method="post">
                <input type="submit" value="添加用户信息">
            </form>
        </div>
        <div>
            <form th:action="@{/rest/user/1000}" method="post">
                <input type="hidden" value="put" name="_method">
                <input type="submit" value="修改ID为1000的用户信息">
            </form>
        </div>
        <div>
            <form th:action="@{/rest/user/1000}" method="post">
                <input type="hidden" value="delete" name="_method">
                <input type="submit" value="删除ID为1000的用户信息">
            </form>
        </div>
    </body>
</html>